<include file="Public/header"/>

<div class="x-nav">
      <span class="layui-breadcrumb">

      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
      <xblock style="height:38px; line-height:38px;">
        <span class="x-right" style="line-height:38px">共有数据：{$count} 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>
            <th>ID</th>
            <th>头像|昵称</th>
            <th>类型</th>
            <th>拆红包时间</th>
            <th>红包总金额</th>
            <th>拆红包金额</th>
            <th>拆分总人数</th>
            <th>已参数人数</th>
            <th>拆红包活动状态</th>
            <th>截团时间</th>
            <th>成团时间</th>
            <th>使用截止时间</th>
            <th>父记录Id</th>
            </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
          <tr>
            <td>{$vo['id']}</td>
            <td><img src="{$vo['head']}" style="width: 40px">{$vo['nickname']}|会员Id:{$vo["uid"]}</td>
            <td>
            <switch name="vo.type">
            	<case value="1">发起拆红包</case>
            	<case value="2">帮拆红包</case>
            </switch>	
            </td>
            <td>{$vo['addtime']|date="Y-m-d H:i:s",###}</td>
            <td>{$vo['total_jiner']}</td>
            <td>{$vo['jiner']}</td>
            <td>{$vo['need_num']}</td>
            <td>{$vo['have_num']}</td>
            <td>
            <switch name="vo.status">
            	<case value="1">进行中</case>
            	<case value="2">已完成</case>
            	<case value="3">已失效</case>
            </switch>
            </td>
            <td><if condition="$vo['end_time'] neq ''">{$vo['end_time']|date="Y-m-d H:i:s",###}</if></td>
            <td><if condition="$vo['success_time'] neq ''">{$vo['success_time']|date="Y-m-d H:i:s",###}</if></td>
            <td><if condition="$vo['use_end_time'] neq ''">{$vo['use_end_time']|date="Y-m-d H:i:s",###}</if></td>
            <td>{$vo['pid']}</td>
          </tr>
        </volist>


        </tbody>
      </table>
      <div class="page" id="page">
        {$page}
      </div>

    </div>
    <script>


       /*用户-停用*/
      function member_stop(obj,id){
          layer.confirm('确认要停用吗？',function(index){

              if($(obj).attr('title')=='启用'){

                //发异步把用户状态进行更改
                $(obj).attr('title','停用')
                $(obj).find('i').html('&#xe62f;');

                $(obj).parents("tr").find(".td-status").find('span').addClass('layui-btn-disabled').html('已停用');
                layer.msg('已停用!',{icon: 5,time:1000});

              }else{
                $(obj).attr('title','启用')
                $(obj).find('i').html('&#xe601;');

                $(obj).parents("tr").find(".td-status").find('span').removeClass('layui-btn-disabled').html('已启用');
                layer.msg('已启用!',{icon: 5,time:1000});
              }
              
          });
      }


    </script>

<include file="Public/footer"/>

